<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 9/25/14
 * Time: 11:53 AM
 */

namespace Common\Models\Videos;
use Phalcon\Mvc\Model;

class VideoDescription extends Model
{
    protected $id;

    protected $video_id;

    protected $video_group_id;

    protected $name;

    protected $name_vn;

    protected $national_id;

    protected $short_name;

    protected $year_product;

    protected $year_publish;

    protected $description;

    protected $meta_keywords;

    protected $meta_description;

    public function getSource()
    {
        return 'video_description';
    }

    public function initialize()
    {
        $this->setSource('video_description');

         $this->hasOne('national_id' , 'Common\Models\Videos\National' , 'id' , array(
            'alias' => 'national'
        ));
    }

    public function validation()
    {

    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }



    /**
     * @param mixed $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * @return mixed
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param mixed $meta_description
     */
    public function setMetaDescription($meta_description)
    {
        $this->meta_description = $meta_description;
    }

    /**
     * @return mixed
     */
    public function getMetaDescription()
    {
        return $this->meta_description;
    }

    /**
     * @param mixed $meta_keywords
     */
    public function setMetaKeywords($meta_keywords)
    {
        $this->meta_keywords = $meta_keywords;
    }

    /**
     * @return mixed
     */
    public function getMetaKeywords()
    {
        return $this->meta_keywords;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name_vn
     */
    public function setNameVn($name_vn)
    {
        $this->name_vn = $name_vn;
    }

    /**
     * @return mixed
     */
    public function getNameVn()
    {
        return $this->name_vn;
    }

    /**
     * @param mixed $short_name
     */
    public function setShortName($short_name)
    {
        $this->short_name = $short_name;
    }

    /**
     * @return mixed
     */
    public function getShortName()
    {
        return $this->short_name;
    }

    /**
     * @param mixed $video_id
     */
    public function setVideoId($video_id)
    {
        $this->video_id = $video_id;
    }

    /**
     * @return mixed
     */
    public function getVideoId()
    {
        return $this->video_id;
    }

    /**
     * @param mixed $national_id
     */
    public function setNationalId($national_id)
    {
        $this->national_id = $national_id;
    }

    /**
     * @return mixed
     */
    public function getNationalId()
    {
        return $this->national_id;
    }

    /**
     * @param mixed $year_product
     */
    public function setYearProduct($year_product)
    {
        $this->year_product = $year_product;
    }

    /**
     * @return mixed
     */
    public function getYearProduct()
    {
        return $this->year_product;
    }

    /**
     * @param mixed $year_publish
     */
    public function setYearPublish($year_publish)
    {
        $this->year_publish = $year_publish;
    }

    /**
     * @return mixed
     */
    public function getYearPublish()
    {
        return $this->year_publish;
    }

    /**
     * @param mixed $video_group_id
     */
    public function setVideoGroupId($video_group_id)
    {
        $this->video_group_id = $video_group_id;
    }

    /**
     * @return mixed
     */
    public function getVideoGroupId()
    {
        return $this->video_group_id;
    }


} 